<template>
  <div>
    <el-table :data="withDraw">
      <el-table-column prop="id" label="序号" width="80" />
      <el-table-column prop="setTime" label="结算日期" align="center" />
      <el-table-column prop="setType" label="结算类型" align="center" />
      <el-table-column prop="setMoney" label="结算金额" align="center" />
      <el-table-column prop="goodsID" label="订单ID" align="center" />
      <el-table-column prop="declare" label="说明" />
    </el-table>
  </div>
</template>

<script setup>
import { reactive, ref } from "vue";
import { getAccount } from "../../api/SaleFinance.js";

const withDraw = ref([]);

function getIncome(){
  getAccount().then((res) => {
    // console.log(res);
    withDraw.value = res.data.info;
  });
};
getIncome();
</script>

<style lang="less" scoped>
.el-table {
  font-size: 12px;
}
</style>
